<html metal:use-macro="here/main_template/macros/master">
<tal:block metal:fill-slot="top_slot" tal:define="dummy python:request.set('disable_border',1)"/>

<body metal:fill-slot="main"
    tal:define="assessmentStorageService python:here.knowledgeengine_assessmentstorageservice;
                assessment python:assessmentStorageService.loadAssessment( request['assessmentIdentity'] );">

<table class="customTesting">

<tr tal:define="model      assessment/getModel;
                       reports    python:model.getReports(className='SimpleReport');
                       report     python:reports and reports[0] or None;
    ">
        <td>
            <a tal:attributes="href string:${model/absolute_url}/assess?assessmentIdentity=${assessment/getIdentity}&exitURL=demo_search_form"
               tal:content="assessment/getIdentity"/>
        </td>
</tr>
<tr tal:define="component python:here.getComponentByIdentity('chk01160096201958811024328'); state python:assessment.getComponentState(component.getIdentity())">
    <th>Choice Question (checkbox) by compID:</th>
    <td tal:content="structure python:component.getReportContentForValue(state.getValue())"/> 
</tr>

<tr>
    <th>Date (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('datetimeselector01160096293300313182522') or 'Not Found'"/>
</tr>
<tr>
    <th>Date (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('datetimeselector') or 'Not Found'"/>
</tr>

<tr>
    <th>Numeric Box (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('num011601087750244487961604') or 'Not Found'"/>
</tr>
<tr>
    <th>Numeric Box (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('numericbox') or 'Not Found'"/>
</tr>

<tr>
    <th>Multiple Choice (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('mch01160108598501785298309') or 'Not Found'"/>
</tr>
<tr>
    <th>Multiple Choice (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('multiplechoice') or 'Not Found'"/>
</tr>

<tr tal:define="component python:here.getComponentByIdentity('para0116010899643537731032')">
    <th>Paragraph:</th>
    <td tal:content="structure python:component.getReportContent()"/> 
</tr>

<tr>
    <th>Selection with checkboxes:</th>
    <td tal:content="python:', '.join( assessment.getComponentByIdentityValue('sel011601090850994379641044'))"/>
</tr>

<tr>
    <th>Selection with radio buttons:</th>
    <td tal:content="python:', '.join( assessment.getComponentByIdentityValue('sel01160109422366242962945'))"/>
</tr>

<tr>
    <th>Selection with drop down:</th>
    <td tal:content="python:', '.join( assessment.getComponentByIdentityValue('sel01160116782383534522419'))"/>
</tr>

<tr>
    <th>Selection with multiselect:</th>
    <td tal:content="python:', '.join( assessment.getComponentByIdentityValue('sel01160117125899825774661'))"/>
</tr>

<tr>
    <th>Text Box (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('text01160117301552227446034') or 'Not Found'"/>
</tr>
<tr>
    <th>Text Box (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('textbox') or 'Not Found'"/>
</tr>

<tr>
    <th>Multi Line Text Box (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('text01160117313965751409454') or 'Not Found'"/>
</tr>
<tr>
    <th>Multi Line Text Box (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('multiline_textbox') or 'Not Found'"/>
</tr>

<tr>
    <th>File Upload (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('file01160698798625926548811') or 'Not Found'"/>
</tr>
<tr>
    <th>File Upload (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('fileupload') or 'Not Found'"/>
</tr>

<tr>
    <th>Link (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('link01160698918855786591087') or 'Not Found'"/>
</tr>
<tr>
    <th>Link (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('link') or 'Not Found'"/>
</tr>

<tr>
    <th>Entity Chooser (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('ec01160822920758659044059') or 'Not Found'"/>
</tr>
<tr>
    <th>Entity Chooser (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('entitychooser') or 'Not Found'"/>
</tr>

<tr>
    <th>Text Box Unique(By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('text01161831423334721099295') or 'Not Found'"/>
</tr>
<tr>
    <th>Text Box Unique(By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('textboxUnique') or 'Not Found'"/>
</tr>

<tr>
    <th>Text Box Mandatory and Unique(By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('text01161831501467345560941') or 'Not Found'"/>
</tr>
<tr>
    <th>Text Box Mandatory and Unique(By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('textboxMandatoryUnique') or 'Not Found'"/>
</tr>

<tr>
    <th>List (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('lookup01163998549117098404527') or 'Not Found'"/>
</tr>
<tr>
    <th>List (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('lookup.Users') or 'Not Found'"/>
</tr>

<tr>
    <th>Python Script (By component ID):</th>
    <td tal:content="python:assessment.getComponentByIdentityValue('py01163998664425659766108') or 'Not Found'"/>
</tr>
<tr>
    <th>Python Script (By shortname):</th>
    <td tal:content="python:assessment.getComponentByIdValue('pythonscriptFullnameRanNum') or 'Not Found'"/>
</tr>
</table>
    
</body>
</html>
